From 91ef25403c8cbbf9ff61111346ee268d96ea8ca2 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 9 Mar 2006 07:12:03 +0000 Subject: [PATCH] Tweak icon for suprise cache type on maggeo write. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1760 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/maggeo.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gpsbabel/maggeo.c b/gpsbabel/maggeo.c index bb645f622..6c5f9c288 100644 --- a/gpsbabel/maggeo.c +++ b/gpsbabel/maggeo.c @@ -160,7 +160,15 @@ maggeo_waypt_pr(const waypoint *waypointp) lon = (lon_deg * 100.0 + lon); lat = (lat_deg * 100.0 + lat); - ctype = gs_get_cachetype(waypointp->gc_data.type); + /* + * For some reason, Magellan used exactly the GPX spellings of + * everything except this one... + */ + if (waypointp->gc_data.type == gt_suprise) { + ctype = "Mystery Cache"; + } else { + ctype = gs_get_cachetype(waypointp->gc_data.type); + } placeddate = maggeo_fmtdate(waypointp->creation_time); lfounddate = maggeo_fmtdate(waypointp->gc_data.last_found); cname = mkshort(desc_handle, waypointp->notes ? waypointp->notes : waypointp->shortname); -- 2.30.2